/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.ispviolation;

/**
 *
 * @author yandiswa
 */
public class Student {
    
    
    
    String studName;
    public void setStudName(PersonInter stud)
    {
        studName = stud.getHardworker();
        // this class is aware of other members/attributes of the PersonImpl class
        // Example: studName, Violates ISP
    }

    public String getStudName()
    {
        return "name " +studName+ ". . .";
    }
}
